package ui.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fy.fyzf.R;
import com.fy.fyzf.bean.OwnerListBean;
import java.util.List;

public class OwnerListAdapter extends BaseQuickAdapter<OwnerListBean.ListOwnerVosBean, BaseViewHolder> {

    public OwnerListAdapter() {
        super(R.layout.item_add_owner);
    }

    @Override
    protected void convert(BaseViewHolder helper, OwnerListBean.ListOwnerVosBean item) {
        String s = item.getOwnerRemark() == null ? "无" : item.getOwnerRemark();
        helper.setText(R.id.tv_owner_name,"业主姓名："+ item.getOwnerName())
                .setText(R.id.tv_tel, "电话号："+ item.getOwnerMobile())
                .setText(R.id.tv_remark, "备注："+ s);
    }
}
